/* Layout style */
body, ul, h2 {
  margin:  0px;
  padding: 0px;

}

div {
  box-sizing: border-box;
}

ul li {
  list-style: none;
  margin: 0.5rem auto;
}

a {
  font-style: none; 
}

/* business card */

.business-card {
  width: 300px;
  height: 170px;

  border: 1px solid rgba(34, 16, 16, 0.5);
  border-radius: 8px;
  box-shadow: 2px 2px 0px 1px #df7272a8;

  cursor: pointer;

  margin: auto;
}

/* business-card front */

.business-card .front {
  height: 100%;
  display: grid;
  grid-template-columns: 70px auto ;
  grid-template-rows: 36px 2px auto;
}

.business-card .front h2 {
  grid-column: 1 /3;
  margin-top: 0.2rem;
  text-align: center;
}

.business-card .front .line {
  grid-column: 1 /3;

  height: 0px;
  width: 80%;
  margin: auto;
  border: 1px dotted black;
  border-bottom: none;
}

.business-card .front img {
  max-width: 100%;
  margin: auto 5px;
  align-self: center;

  border-radius: 3px;
}

.business-card .front .contacts  {
  width: 100%;
  padding: 0px;
  margin: auto 10px;
  align-self:center;
}

.business-card .front .contacts ul li i {
  width:1rem;
}

.business-card .front .contacts ul li.wechat {
  cursor:pointer;
  text-decoration:underline;
}

.business-card .front .contacts ul li.wechat img{
  display: none;
}

.business-card .front .contacts ul li.wechat:hover img{
  display: block;
  position: absolute;
  width: 100px;
  height: auto;
}

/* business-card back */

.business-card .back {
  padding: 3px;
}

.business-card .back ul {
  align-self: center;
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
}

.business-card .back ul li {
  text-align:left;
  margin: 0.2rem;
}

.business-card .back p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: blueviolet;
  font-size: 15px;

  margin-right: 6px;
  text-align: center;
  align-self: center;
}